import com.ftt.product.dao.ProductDao;
import com.ftt.product.model.ShoppingCar;

import java.util.ArrayList;
import java.util.List;

//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {
        ProductDao dao = new ProductDao();
        List<ShoppingCar> list = new ArrayList<>();
        ShoppingCar c1 = new ShoppingCar();
        ShoppingCar c2 = new ShoppingCar();
        c1.setCustomerId(47);
        c1.setSell_price(12);
        c1.setDescription("123456");
        c1.setNumber(3);
        list.add(c1);
        dao.addOrder("12345678911", list);
        System.out.println("执行完毕");
    }
}